<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>React 二次体验</title>
    <!-- 1. -->
    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
  </head>
  <body>
    <!-- 2.  -->
    <div id="root"></div>
    <script>
      // 3. 创建 react 元素                       子元素
      let vnode = React.createElement(
        'div', 
        null, 
        React.createElement('h2', {className: 'title', id: 'h2'}, '网易瑶台携手政协称多县委举办首个元宇宙自然生态公益摄影展'), 
        React.createElement('p', null, '6月9日-10日，网易伏羲旗下沉浸式活动平台网易瑶台携手青海省玉树藏族自治州称多县政协，顺利举办2022“生态守护映像”沉浸式公益生态摄影展，以科技赋能公益，为自然生态保护点燃微光。')
      );

      //4. 渲染
      ReactDOM.render(vnode, document.querySelector('#root'));
    </script>
  </body>
</html>
